package com.king.pattem.decorator;

/**
 * @author taomk
 * @version 1.0
 * @since 15-1-17 上午11:29
 */
public class PacketHTMLHeaderCreator extends PacketDecorator {

	public PacketHTMLHeaderCreator(IPacketCreator c) {
		super(c);
	}


	@Override
	public String handleContent() {
		StringBuffer sb = new StringBuffer();
		sb.append("<html>");
		sb.append("<body>");
		sb.append(component.handleContent());
		sb.append("</body>");
		sb.append("</html>\n");
		return sb.toString();
	}
}
